package com.wyh.domain.dto.groupOne.projectaboutdto;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "Buildingunits对象", description = "资源信息实体")
@TableName("buildingunits")
public class BuildingunitsDTO implements Serializable {

    @NotNull(message = "[id]不能为空")
    @ApiModelProperty("id")
    private Integer id;

    @NotNull(message = "[资源父级]不能为空")
    @ApiModelProperty("资源父级")
    private Integer parentid;

    @NotNull(message = "[资源名称]不能为空")
    @Size(max = 255, message = "名字长度不能超过255")
    @ApiModelProperty("资源名称")
    private String name;

    @NotNull(message = "0组团、1楼栋、2单元、3车库、4公共区域")
    @ApiModelProperty("资源类型")
    private Integer type;

    @NotNull(message = "资源业态不能为空")
    @ApiModelProperty("资源业态")
    private String formats;


    @ApiModelProperty("上级名称")
    private String superName;

    @ApiModelProperty("关联资源情况，Y是关联到组织表，N是关联到本表")
    private String isconnected;
    @ApiModelProperty("状态")
    private Integer state;
    @ApiModelProperty("项目")
    private ProjectDTO projectDTO;

}
